package com.example.oop.timeslot;

import java.time.DayOfWeek;
import java.time.LocalTime;

public class WeeklyTimeSlot extends TimeSlot{

    //特有属性，星期的某一天
    private DayOfWeek DayOfWeek;

    //获取那一天
    public DayOfWeek getDayOfWeek(){
        return DayOfWeek;
    }

    //构造方法
    public WeeklyTimeSlot(DayOfWeek DayOfWeek, LocalTime startTime,LocalTime endTime){
        //调用父类的构造方法
        super(startTime,endTime);
        this.DayOfWeek = DayOfWeek;
    }
}